<template>
  <div class="publicVid">
    <div @click="goHome" class="logo animate__animated animate__rubberBand">
      <img
        src="../../assets/image/bitbug_favicon.ico"
        alt=""
        style="width: 50px; height: 60px"
      />
      <span class="logoSpan">闪光时刻</span>
    </div>
    <div class="logoCenter" v-if="$route.path == 'manageVedio'">
      <span class="article">上传视频让更多人发现你</span>
      <p class="little">更适合大众的舞台</p>
    </div>
    <div class="logoCenter" v-else>
        <span class="article">作品管理</span>
        <p class="little">是你的作品更加好看</p>
      </div>
    <el-avatar :size="50"  />
  </div>
  
</template>

<script setup lang="ts">
import "animate.css";
import {useRoute,useRouter} from 'vue-router'
import {useAlertsStore} from '../../store/modules/home.js'
let useAlerts = useAlertsStore()
let $route = useRoute()
let $router = useRouter();
const goHome = () => {
  $router.push("/");
};
</script>

<style scoped lang="less">
.publicVid {
  background-color: #000000;
  width: 100%;
  height: 70px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .logo {
    display: flex;
    cursor: pointer;
    align-items: center;
    padding-left: 10px;
    .logoSpan {
      font-size: 20px;
      font-weight: 800;
      padding-top: 15px;
      margin-left: 5px;
      color: #fff;
      text-shadow: 4px 8px 5px #000;
    }
    :hover {
      cursor: pointer;
    }
  }

  .logoCenter {
    display: flex;
    flex-direction: column;
    .article {
      padding-top: 10px;
      color: #fff;
      font-size: 20px;
      font-weight: 800;
    }
    .little {
      padding-top: 10px;
      color: #7a7a7a;
    }
  }
}

</style>
